<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="/common/meta.jsp"></jsp:include>
<jsp:include page="/common/css_js.jsp"></jsp:include>

</head>

<body>
	 
	<form id="mainForm" action="user!list.action" method="post">
	
	<jsp:include page="/common/content_top.jsp"><jsp:param name="title" value="用户管理"/></jsp:include>
   
	
		<input type="hidden" name="page.pageNo" id="pageNo"
			value="${page.pageNo}" /> <input type="hidden" name="page.orderBy"
			id="orderBy" value="${page.orderBy}" /> <input type="hidden"
			name="page.order" id="order" value="${page.order}" />
		<div id="filter" class="filter">
			<table>
				<tr>
					<td><div class="filter_label">登录名:</div>
					</td>
					<td><input type="text" name="filter_LIKES_loginName" />
					</td>
					<td align="right">&nbsp;<input type="button" value="搜索" onclick="search();" /></td>
					<td align="right"><security:authorize
							ifAnyGranted="user_update">
							&nbsp;&nbsp;&nbsp;&nbsp;<a href="user!input.action" style="color: blue;" >新增</a>&nbsp;
						</security:authorize></td>
					<td></td>
				</tr>
			</table>
		</div>
		
		<jsp:include page="/common/content_middle.jsp"><jsp:param name="title" value="用户信息"/></jsp:include>
		
		
		<div id="content">
			<div id="message">
				<s:actionmessage theme="custom" cssClass="success" />
			</div>
			<table id="contentTable" cellpadding="0" cellspacing="1" style="background-color: gray;" width="100%" height="100%">
				<tr bgcolor="#F7F8F9" align="center">
					<th><a href="javascript:sort('loginName','asc')" style="color: blue;">登录名</a>
					</th>
					<th>角色</th>
					<security:authorize ifAnyGranted="user_update">
						<th>操作</th>
					</security:authorize>
				</tr>
				<s:iterator value="page.result">
					<tr bgcolor="#F7F8F9" align="center">
						<td>${loginName}&nbsp;</td>
						<td>${roleNames}&nbsp;</td>
						<security:authorize ifAnyGranted="user_update">
							<td> <a href="user!input.action?id=${id}" style="color: blue;">修改</a>&nbsp;
								<a href="user!delete.action?id=${id}" style="color: blue;" onclick="return delConfirm('${loginName}');">删除</a></td>
						</security:authorize>

					</tr>
				</s:iterator>
			</table>
			<br/> 
			<jsp:include page="/common/page.jsp"/>
		</div>
		
		<jsp:include page="/common/content_bottom.jsp"/>
	</form>
	

</body>
</html>
